package top.carrotguo.weibo.presenter;

import android.support.annotation.UiThread;

import top.carrotguo.weibo.view.IView;

/**
 * Created by carrot on 2018-10-10.
 */

public interface IPresenter<V extends IView> {
    /**
     * 将view和presenter绑定
     * @param view
     */
    @UiThread
    void attachView(V view);

    /**
     * 解除绑定
     */
    @UiThread
    void detachView();
}
